<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!doctype html>
<html>
  <head>
    <title>JSP Message</title>
  </head>
  <body>
    <jsp:useBean id="now" class="java.util.Date"/>
    <fmt:setLocale value="de_DE"/>
    <fmt:setBundle basename="Resources"/>
    <p>
      <fmt:formatDate pattern="YYYY-MM-dd HH:mm:ss.SSS" value="${now}"/>
    </p>

    <fmt:setLocale value="de_AT"/>
    <fmt:timeZone value="GMT+0800">
      <p>
        <fmt:formatDate type="both" dateStyle="full" value="${now}"/>
      </p>
    </fmt:timeZone>

    <fmt:setLocale value="en_US"/>
    <p>
      <fmt:formatDate type="time" timeStyle="short" value="${now}"/>
    </p>

    <fmt:setLocale value="fr_FR"/>
    <p>
      <fmt:formatDate type="both" value="${now}"/>
    </p>

  </body>
</html>
